CC = /opt/llvm/bin/clang
CFLAGS += -nostdinc
CFLAGS += -I/opt/llvm/lib/clang/2.8/include
CFLAGS += -I../include

CXXFLAGS += -nostdinc++

LDFLAGS += -L./
LDFLAGS += -lclang-stdc

all:
	$(CC) $(CFLAGS) assert.c $(LDFLAGS) -o assert.test
	$(CC) $(CFLAGS) complex.c $(LDFLAGS) -o complex.test
	$(CC) $(CFLAGS) ctype.c $(LDFLAGS) -o ctype.test
	$(CC) $(CFLAGS) errno.c $(LDFLAGS) -o errno.test
	$(CC) $(CFLAGS) math.c $(LDFLAGS) -o math.test
	$(CC) $(CFLAGS) setjmp.c $(LDFLAGS) -o setjmp.test
	$(CC) $(CFLAGS) stdio.c $(LDFLAGS) -o stdio.test
	$(CC) $(CFLAGS) stdlib.c $(LDFLAGS) -o stdlib.test
	$(CC) $(CFLAGS) string.c $(LDFLAGS) -o string.test
clean:
	rm -f *.test 